package com.example.dao;

import com.example.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserDao {
    public int add(User user);

    public void delete(String username);

    public User get(String username);

    public int update(User user);

    List<User> list();

    public void updateImg(User user);

    public void updateSignature(User user);

    public void updateGender(User user);
    public User getUserPermission(User user);
    public void background(User user);
}
